/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication1;

import java.lang.Thread;

public class ThreadCreator {
    
{

    public static void main(string[] args)
    {
        System.out,printIn( "Creationg threads");
    Thread thread1 = new Thread (new PrintTask("task1"));
    Thread thread2 = new Thread (new PrintTask("task2"));
    Thread thread3 = new Thread (new PrintTask("task3"));
      
      System.out.printIn( "Threads created, starting tasks.");
      
      thread1.start();
      thread2.start();
      thread3.start();
      
      System.out.printIn( "Tasks started main ends.\n");
    }
}